#{extends 'main.html' /}
<div>
    <ul>
        <li>
            <a href="">个人资料</a>
        </li>
        <li>
            <a href="">修改密码</a>
        </li>
        <li>
            <a href="">修改头像</a>
        </li>
        <li>
            <a href="">账户充值</a>
        </li>
        <li>
            <a href="">收支记录</a>
        </li>
        <li>
            <a href="">申请发票</a>
        </li>
        <li>
            <a href="">我的背包</a>
        </li>
    </ul>
</div>

<div>
    <table class="table table-bordered table-striped">
        <a href="">索要发票</a>
        <tr>
            <th>日期</th>
            <th>交易编号</th>
            <th>内容</th>
            <th>收入/支出</th>
        </tr>
        <tr>

        </tr>
    </table>
    <p>
    <ul>
        <li>
            共 ${size} 条记录 共 ${number} 页
        </li>
        <li>
            当前第 1 页
        </li>
        <li>
        #{if number==0}
            <a href="/user/expenditure?pageSize=${pageSize}">上一页</a>
        #{/if}

        #{elseif number==pageSize+1&&pageSize+1 == 1}
            <a href="/user/expenditure?pageSize=${pageSize}">上一页</a>
        #{/elseif}

        #{elseif number==pageSize+1}
            <a href="/user/expenditure?pageSize=${pageSize-1}">上一页</a>
        #{/elseif}

        #{elseif number<pageSize+1}
            <a href="/user/expenditure?pageSize=${number}">上一页</a>
        #{/elseif}
        </li>
        <li>
        #{if number==0}
            <a href="/user/expenditure?pageSize=${pageSize}">下一页</a>
        #{/if}
        #{elseif number==pageSize+1}
            <a href="/user/expenditure?pageSize=${pageSize}">下一页</a>
        #{/elseif}
        #{elseif number>pageSize+1}
            <a href="/user/expenditure?pageSize=${pageSize+1}">下一页</a>
        #{/elseif}
        </li>
    </ul>
    </p>
</div>